Find The Mean and Variance of a Piecewise Probability Density Function